package com.zdkj.subway.stm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 单程票流失率统计表
 *
 * @author cui_com
 * @date 2020-08-21 15:39:25
 */
@Data
@TableName("sw_st_one_way_statistics")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "单程票流失率统计表")
public class SwStOneWayStatistics extends Model<SwStOneWayStatistics> {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId
    @ApiModelProperty(value = "唯一标识")
    private Integer id;


    /**
     * 线路
     */
    @ApiModelProperty(value = "线路Code")
    private String lineCode;

    /**
     * 线路
     */
    @ApiModelProperty(value = "线路名称")
    private String lineName;

    /**
     * 年月
     */
    @ApiModelProperty(value = "年月")
    private String dateTime;

    /**
     * 统计开始日期
     */
    @ApiModelProperty(value = "统计开始日期")
    private LocalDate startTime;

    /**
     * 统计结束日期
     */
    @ApiModelProperty(value = "统计结束日期")
    private LocalDate endTime;
    /**
     * 上月结存
     */
    @ApiModelProperty(value = "上月结存")
    private Integer preMonthAmount;
    /**
     * 本月配送
     */
    @ApiModelProperty(value = "本月配送")
    private Integer curMonthDelivery;
    /**
     * 本月回收
     */
    @ApiModelProperty(value = "本月回收")
    private Integer curMonthRecovery;
    /**
     * 本月结存
     */
    @ApiModelProperty(value = "本月结存")
    private Integer curMonthAmount;
    /**
     * 本月车票流失量
     */
    @ApiModelProperty(value = "本月车票流失量")
    private Integer curMonthLost;
    /**
     * 单程票进站客流量
     */
    @ApiModelProperty(value = "单程票进站客流量")
    private Integer onWayPassengerAmount;
    /**
     * 本月万人流失率
     */
    @ApiModelProperty(value = "本月万人流失率")
    private BigDecimal curMonthLostPercent;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String delFlag;

    /**
     * 查询日期
     */
    @ApiModelProperty(value = "查询日期")
    @TableField(exist = false)
    private LocalDate endTimeDTO;

    @TableField(exist = false)
    private List<String> dates1;
}
